Add Workbench to Addon Manager/de
Einleitung
Dies ist eine Schritt-für-Schritt-Anleitung, wie man einen Python-Arbeitsbereich zum Addon-Manager hinzufügt.
Voraussetzungen:
Entwicklermodus aktivieren
- Den Voreinstellungseditor öffnen: Den Menüeintrag Bearbeiten →
Einstellungen... auswählen.
- Die Menüoption
Addon-Manager in der linken Leiste auswählen.
- Auf dem Menüreiter Addon-Manager Optionen den Haken in der Checkbox Addon-Entwickler-Modus setzen. Dies aktiviert die Schaltfläche Entwicklerwerkzeuge... im Addon-Manager.
- Die Schaltfläche OK drücken, um den Voreinstellungseditor zu schließen.
Die package.xml-Datei erstellen
- Open the Addon Manager: select the Tools →
Addon manager option from the menu.
- Press the Developer tools... button.
- The Addon Developer Tools dialog opens.
![](../File/Addon_Manager_Addon_Developer_Tools_Dialog.png)
- Enter the following:
- Path to Addon: The path to the local git repository.
- Addon Name: This will appear in the listings of the Addon Manager.
- Description: Idem.
- Version: Idem.
- Repository URL
- Primary branch
- README URL: Recommended.
- Icon: The icon must be part of the repository.
- Press the
button at the bottom of the dialog.
- The Content Item dialog opens.
![](../File/Addon_Manager_Content_Item_Dialog.png)
- The Content type should be set to
Workbench
.
- Check the This is the only item in the Addon checkbox.
- Enter the Workbench class name. This is the class name specified in the InitGui.py file.
- For the Subdirectory enter
./
.
- Press the OK button to close the dialog.
- Press the Save button to close the Addon Developer Tools dialog and save the package.xml file.
- Press the
Close button to close the Addon Manager.
- Push the created file to your remote repository.
Den Arbeitsbereich zur .gitmodules-Datei hinzufügen
- Fork https://github.com/FreeCAD/FreeCAD-addons.
- Create a new branch.
- Edit the .gitmodules file to include your new Addon, in alphabetical order.
- Push the new branch to GitHub.
- Submit a Pull Request to the FreeCAD-Addons repository with the new .gitmodules file.
Siehe auch